EMT Practice Test

1. Question Content...


Question List

Question1: In the bash shell, which command can be used to create a MY_NAME variable containing the value Joe?

Question2: Which command is suitable for displaying the CPU load as a percentage?

Question3: You want to know which files are contained in the hugin-0.6.1-2.2.i586.rpm RPM package, which has not yet been installed. Which command will give you this information?

Question4: You have set the following permissions on a test directory: rwxrwxrwx. Which statement about files in the test directory is correct?

Question5: While in insert mode, how do you save a file and close vi?

Question6: You want to add user tux to the southpole group without changing his primary group membership. Which command do you use for this purpose?

Question7: The /backup/snapshot was changed to the /backup/backup_monday.tgz archive. Which command will now write new or modified files below /home?

Question8: You wonder which installed RPM package the /etc/exports file belongs to. Which command will give you the desired information?

Question9: The /etc/sysconfig/network/ifcfg-eth-id-macaddress configuration file contains a BOOTPRO option. Which are possible values of BOOTPROTO?

Question10: You would like to run command2 only if command1 did not complete successfully.
Which command accomplishes this task?

Question11: You want to find out which jobs are currently queued in the laser print queue on your CUPS print server.
Which command displays the information you need?

Question12: Which statement about the Set User ID bit on executable files is correct?

Question13: What is the difference between the /dev/st0 and /dev/nst0 devices?

Question14: You have a /tmp/data directory containing the files .file, file1, and file2. You want to copy the file1 and file2 files only to the /data-old directory that already exists. In a terminal window, which command acomplishes this?

Question15: You have a /tmp/data directory containing the files .file, file1, and file2. You want to delete the directory and its content. In a terminal window, which command accomplishes this?

Question16: Which statement about a CUPS Using Broadcasting configuration is correct?

Question17: The useradd command is used to create new users. Which file contains information on the primary group, shell, and other parameters to be used by useradd when not specified on the command line?

Question18: You are viewing the manual page of crontab, but it does not contain the information you are looking for.
You suspect there is another crontab manual page. Which command could you use to find out if another crontab manual page exists? (Choose 2.)

Question19: Which file contains the configuration information of the print queues available on your CUPS server?

Question20: You want to redirect the output of the ls command to the ls-output file which already exists. The output should be appended to the file; it should not overwrite the existing content. Which command accomplishes this task?

Question21: What action does the jobs command perform?

Question22: You want to copy the mytext file from your computer to the /tmp/ directory on the remote computer da20.
digitalairlines.com. Which command would you use to accomplish this?

Question23: Which command shows you the default shell of a user?

Question24: Which command is used to enter or change the quota for user tux?

Question25: Which is the main configuration file for logrotate?

Question26: Which statement regarding symbolic links is true? (Choose 2.)

Question27: You do not want to see any error messages when using the find command; you want to see only the results. Which command accomplishes this task?

Question28: What is the output of the echo '$HOME' command when user geeko (home directory /home/geeko) enters it at the bash shell prompt?

Question29: Which statement about the /sbin/ldconfig command is correct?

Question30: You can schedule jobs to be executed by cron in several ways. Which directories are used for scripts that are to be executed at regular intervals? (Choose 2.)

Question31: You would like to run command1 and then command2, whether or not command1 completed successfully.
Which command accomplishes this task?

Question32: What does the following command do? tar -czvf /tmp/backup.tgz /etc/HOSTNAME

Question33: What is the result of the following command? (Choose 2.)
dd if=/dev/zero of=/dev/hdd bs=512 count=1

Question34: You want to view the last 20 lines of the /var/log/messages file and any new lines that are subsequently added by syslog to this file. Which command would you use?

Question35: Which statement about a differential backup is correct?

Question36: You want to view the status (locked, valid password, etc.) of the account tux.
Which command displays the desired information?

Question37: Which statement about symmetric encryption is correct?

Question38: What does the following command do? tar -tzvf /tmp/backup.tgz etc/HOSTNAME

Question39: As a normal user, such as geeko, you use the lpoptions command to change printer options, such as the page size. To which file are these options saved?

Question40: What is the purpose of the ssh-agent command?

Question41: How do you start a YaST module (for instance, the sw_single module used to install software) directly from the command line? (Choose 2.)

Question42: You want to secure a POP3 connection to a server that does not support SSL. While you do not have ssh access to the POP3 server itself, you at least have SSH access to a server near the POP3 server. Given the following information:
POP3 server: pop3.digitalairlines.com
SSH server: ssh.digitalairlines.com
Your host: da10.digitalairlines.com
POP3 port: 110
Local port: 11110
Which command will forward connections from the local port 11110 to port 110 of the POP3 server, using a secure tunnel between your host and the SSH server?

Question43: Which statement about the sudo command is correct?

Question44: You want to disable the network device eth0. Which command can you use?

Question45: You want to create the new user account tux with the password penguin (password hash:
TvqBFhQWgeSho) and a default home directory. Which command can be used to create the account with the above parameters?

Question46: Which statement about an incremental backup is correct?

Question47: You want to boot your system to runlevel 3. Which option do you have to enter at the GRUB boot manager dialog?

Question48: Which command displays the value stored in the $MYVAR variable?

Question49: From command mode in vi, what do you have to do to enter text?

Question50: Which key combination can you use to stop a process that runs in the foreground?

Question51: Which file can be used to send a message to users logging in on a text console?

Question52: What is the effect of selecting the option "Enable IP Forwarding" in the routing configuration in YaST?

Question53: Which range of User IDs is used for normal (unprivileged) users on SUSE Linux Enterprise Server 10?

Question54: Which command can you use to generate an MD5-encrypted password for GRUB?

Question55: You created a script (/root/bin/backup.sh) that backs up your files when executed. Using cron, you want to execute this script once every Saturday at 3:00 pm. Which line would you have to enter after invoking crontab - e in a terminal window?

Question56: You want to delete a certain print job from the laser print queue. Using the lpq command, you determined the job number of this job as 1234. Which command lets you delete that job?

Question57: Suppose you change from your current runlevel 5 to the new runlevel 3. Which statement is correct?

Question58: Which group name is stored in /etc/passwd?

Question59: You have limited access to the /admin directory of the web interface of your CUPS server with the following statement in /etc/cups/cupsd.conf:
<Location /admin>
AuthType BasicDigest
AuthClass Group
AuthGroupName sys
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
To allow the cupsadmin user to access the /admin directory when connecting from localhost, how do you create the cupsadmin user and set his password?

Question60: Which RAID level is described by the following sentence? This level improves the performance of your data access; however, it does not provide redundancy.

Question61: As root, you entered the runlevel command. What does the following output indicate? N5

Question62: Where can you set global shell environment variables for all users independent of their shell?

Question63: How do you create a file called destination containing the same ACLs currently set for the file called source?

Question64: You want to copy the master boot record, the partition table, and the 2 magic bytes at the beginning of / dev/had to a file so you can restore it later. Which command accomplishes this?

Question65: Which lists of wireless networks are kept by NetworkManager?

Question66: What is the type command used for?

Question67: In a terminal window, which command can you enter to change to your home directory (/home/geeko)?
(Choose 2.)

Question68: Which statement about the primary (default) group of a user is correct?

Question69: From the command line, which command would you use to print the document.ps file on the laser printer?

Question70: You have a test directory with the following permissions: rwx------ You want to change the permissions to the following values: r-xr-xr-x. Which command accomplishes this?

Question71: You entered your quota information in /etc/fstab. What do you have to do next?

Question72: Which command can you use to set up limits for failed logins?

Question73: You want to install the ethereal RPM package that is available on the SUSE Linux Enterprise Server 10 installation media. Which command installs the ethereal package, and resolves dependencies as needed?

Question74: When you connect to an ssh server with your ssh client, the public key of the server is compared to the keys stored in a file on the client computer. Which file is this?

Question75: You want to install the xyz-software-1.2.3-5.i586.rpm package, but only if a previous version is already installed. Which command will do this?

Question76: SIMULATION
In which file is the host name of a Linux computer configured? (Hint: You do not need to include the entire path.)

Question77: Which command can be used to view the inode assigned to a filename?

Question78: You have a test directory with the following permissions: rwx------ You want to change the permissions to the following values: r-xr-xr-x. Which command accomplishes this?

Question79: Which command creates the .depend.boot, .depend.start, and .depend.stop files in /etc/init.d/?

Question80: What is the minimum number of partitions required by a SLES 10 system?

Question81: Within less, how do you search for a string downwards from where the cursor is positioned?

Question82: What is the correct order of steps to change the partition table using fdisk?

Question83: In a terminal window, which command displays the name of the directory you are currently in?

Question84: What does the following line of the sudo configuration file mean? geeko ALL = /sbin/shutdown

Question85: You want to redirect both output and error messages of the find command to the find-output file. Which command accomplishes this task?

Question86: While the printers seem physically okay, you are encountering problems with CUPS. What is the best place to start looking for hints on what is wrong?

Question87: To preserve the command history even when the shell is closed, the history is written to a file in the user's home directory. Which file holds the history information of the bash shell?

Question88: Which command can you use to create a Reiser file system on the sda6 partition? (Choose 2.)

Question89: You want to delete all data on the second hard drive (/dev/hdb). Which command accomplishes this?

Question90: Which file system type supports ACLs without a special mount option?

Question91: You have a text file that contains empty lines. Using grep and regular expressions, which command displays the file without the empty lines?

Question92: How do you activate an ACL when mounting a file system manually?

Question93: Which file contains information about which user was last logged in, where the user logged in, and how long the user was logged in?

Question94: Which commands can be used if you do not find the desired information in a manual page, or find no manual page at all for a program?

Question95: You want to find out if files from the wget package were altered since they were installed. Which command will give you this information?

Question96: In which file is the name resolution configured?

Question97: Using the rsync command, you want to mirror the directories, including any hidden files and directories within /home (not the /home directory itself) to the /backup directory. Which command accomplishes this?